import { randomInt } from "crypto"
import dayjs from "dayjs"

export function numberUnionId()
{
    const now = dayjs().valueOf()
    const base = dayjs('2023-01-01').valueOf()

    const baseTime = now - base
    
    const id = baseTime.toString() + randomInt(0,9) + randomInt(0,9) + randomInt(0,9)

    return id
}